@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

i {
  font-style: normal;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

li {
  list-style: none;
}

// main-container global css
.main-container {
  background-color: rgb(240, 242, 245);
}

.app-container {
  padding: 20px;
}

.left-tree {
  display: inline-block;
  width: 200px;
  min-height: calc(100vh - 110px);
  vertical-align: top;
  margin-right: 20px;
  border-radius: 5px;
  background: #fff;
}

.right-cont {
  display: inline-block;
  width: calc(100% - 220px);
  vertical-align: top;
}

.common-top {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
  border-bottom: 1px solid #ddd;

  .el-form-item {
    margin-bottom: 0;
  }

  .title {
    font-size: 16px;
    font-weight: 600;
  }

  .tips {
    color: #b3b3b3;
    font-size: 12px;
    font-weight: normal;
  }
}

.common-bot {
  width: 100%;
  background: #fff;
}

.common-container {
  margin: 20px;
}

.form-tip {
  padding-left: 10px;
  color: red;
}

.bot-left,
.bot-right {
  display: inline-block;
  vertical-align: top;
  width: 50%;
}

.bot-right {
  width: 50%;
  padding-left: 50px;
}

.span-modify {
  margin-right: 10px;
  cursor: pointer;

  &.edit {
    color: $normalColor;
  }

  &.del {
    color: red;
  }
}

.pagination {
  text-align: center;
  padding: 15px 0;
}

.go-back {
  color: $normalColor;
  cursor: pointer;
}

.has-sth {
  color: blue;
  cursor: pointer;
}

.failed {
  color: red;
}

.success {
  color: green;
}

.checking {
  color: #ff7b00;
}

.modify-bot {
  width: 70%;
  padding: 30px 10px;
}

.el-drawer__wrapper {
  .el-drawer__header {
    margin-bottom: 0;
    padding-bottom: 15px;
    padding-top: 15px;
    border-bottom: 1px solid #ddd;

    .el-drawer__close-btn {
      display: none;
    }
  }

  .el-drawer__body {
    height: calc(100% - 60px);
    overflow: hidden;
    overflow-y: auto;
  }
}
